<template>
  <div class="login-app">
    <headerModule :simple="true" />
    <div class="login-main__wrapper">
      <div class="title-line">
        <span class="tit">米米法</span>
      </div>
      <div class="login-form__module">
        <div class="login-form__block">
          <!-- 这里可以放些附加内容 -->
        </div>
        <div class="line__item" />
        <div class="login-form__block">
          <mivaForm />
        </div>
      </div>
      <div class="tip__item">
        登录即代表你同意
        <mivaLink to="https://www.baidu.com">用户协议</mivaLink>和
        <mivaLink to="https://www.baidu.com">隐私政策</mivaLink>
      </div>
    </div>
    <div class="login-footer__wrapper">
      <mivaFooter />
    </div>
  </div>
</template>

<script>
import headerModule from '@/components/header/index.vue';
import mivaFooter from '@/components/footer/index.vue';
import mivaForm from './form/index.vue';

export default {
    components: {
        headerModule,
        mivaFooter,
        mivaForm,
    },
};
</script>

<style lang="less">
.login-app {
  background: #fff;
}
.login-main__wrapper {
  width: @smallWidth;
  margin: 0 auto;
  padding-bottom: 50px;
  position: relative;
  &::after {
    content: "";
    height: @footerHeight;
    display: block;
  }
  .banner__item {
    height: 108px;
  }
  .title-line {
    width: 980px;
    height: 28px;
    border-bottom: 1px solid #ddd;
    margin: 30px auto 28px;
    text-align: center;
    color: @base_color;
    .tit {
      height: 56px;
      line-height: 56px;
      margin: 0 auto;
      padding: 0 20px;
      font-size: 38px;
      background: #fff;
      text-align: center;
    }
  }
  .login-form__block {
    width: calc(50% - .5px);
    flex-shrink: 0;
  }
  .line__item {
    width: 1px;
    background: #ddd;
  }
  .login-form__module {
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
  }
  .tip__item {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    color: #99a2aa;
    a {
      color: @base_color;
    }
  }
}
.login-footer__wrapper {
  width: 100%;
  position: absolute;
  bottom: 0;
}
</style>
